package org.jeecg.modules.demo.weixin.smtsplitrulefee.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.jeecg.modules.demo.weixin.entity.SmtSplitRuleFee;
import org.jeecg.modules.demo.weixin.smtsplitrulefee.mapper.SmtSplitRuleFeeMapper;
import org.jeecg.modules.demo.weixin.smtsplitrulefee.service.ISmtSplitRuleFeeService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 渠道手续费
 * @Author: jeecg-boot
 * @Date:   2023-12-23
 * @Version: V1.0
 */
@Service
public class SmtSplitRuleFeeServiceImpl extends ServiceImpl<SmtSplitRuleFeeMapper, SmtSplitRuleFee> implements ISmtSplitRuleFeeService {


    @Override
    public SmtSplitRuleFee qurySplitType(String merId, String type) {
        LambdaQueryWrapper<SmtSplitRuleFee> queryWrapper = new LambdaQueryWrapper();
        queryWrapper.eq(SmtSplitRuleFee::getMerchantId,merId);
        queryWrapper.eq(SmtSplitRuleFee::getSplitType,type);
       return this.getOne(queryWrapper);
    }
}
